package com.yida.gwj.deposit.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 单位批量缴费小区楼栋修改参数
 * @Author wws
 * @Date 2023-02-17
 */
@ApiModel("单位批量缴费小区楼栋修改参数")
public class GwjUnitDepositCommunityAndBuildEditRequest {

    @ApiModelProperty("业务主键")
    @NotNull(message = "业务主键不能为空")
    private Long bizId;

    @Valid
    @ApiModelProperty("业务小区信息")
    @NotNull(message = "业务小区信息不能为空")
    private GwjUnitDepositCommunityEditRequest communityRequest;

//    @Valid
    @ApiModelProperty("业务楼栋信息")
//    @NotNull(message = "业务楼栋信息不能为空")
    private List<GwjUnitDepositBusinessBuildEditRequest> buildRequests;

    public Long getBizId() {
        return bizId;
    }

    public void setBizId(Long bizId) {
        this.bizId = bizId;
    }

    public GwjUnitDepositCommunityEditRequest getCommunityRequest() {
        return communityRequest;
    }

    public void setCommunityRequest(GwjUnitDepositCommunityEditRequest communityRequest) {
        this.communityRequest = communityRequest;
    }

    public List<GwjUnitDepositBusinessBuildEditRequest> getBuildRequests() {
        return buildRequests;
    }

    public void setBuildRequests(List<GwjUnitDepositBusinessBuildEditRequest> buildRequests) {
        this.buildRequests = buildRequests;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GwjUnitDepositCommunityAndBuildEditRequest{");
        sb.append("bizId=").append(bizId);
        sb.append(", communityRequest=").append(communityRequest);
        sb.append(", buildRequests=").append(buildRequests);
        sb.append('}');
        return sb.toString();
    }
}
